package com.example.starter.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = CommonProperties.PREFIX)
public class CommonProperties {
    static final String PREFIX = "app.comm";

    //getter 和 setter都不能少，否则不能读取properties中的值
    private boolean stacktrace;

    private String swaggerApiKeyName;

    public boolean isStacktrace() {
        return stacktrace;
    }

    public void setStacktrace(boolean stacktrace) {
        this.stacktrace = stacktrace;
    }

    public String getSwaggerApiKeyName() {
        return swaggerApiKeyName;
    }

    public void setSwaggerApiKeyName(String swaggerApiKeyName) {
        this.swaggerApiKeyName = swaggerApiKeyName;
    }
}
